@extends('wap.layouts.master')
@section('title','找回密码')

@section('content')

<div class="aw-main aw-common-user" id="Form-pwd">
	<!--表单-开始-->
	<ul class="aw-assest-form aw-bg-fff aw-mt30">
		<li class="aw-form-li aw-pl10">
			<div class="aw-conter">
				<input type="text" placeholder="请输入手机号" class="aw-text-left" id="phone" name="phone" v-model="form.phone" :value="form.phone">
			</div>
		</li>
		<li class="aw-form-li aw-pl10">
			<div class="aw-conter">
				<input type="password" placeholder="请输入新密码" class="aw-text-left" id="pwd" name="pwd" v-model="form.pwd" :value="form.pwd">
			</div>
		</li>
		<li class="aw-form-li aw-pl10 aw-pr130">
			<div class="aw-conter">
				<input type="text" placeholder="请输入手机验证码" class="aw-text-left" id="code" name="code" v-model="form.code" :value="form.code">
			</div>
			<div class="aw-right aw-right-code">
				<input onclick="Send_Code(this,'#Vue-body')" type="button" value="获取验证码" class="aw-assest-btn aw-btn-radius aw-btn-bgcolor-lanse aw-padding0">
			</div>
		</li>
	</ul>
	<div class="aw-common-btn aw-mt20"><a v-on:click="Click_Pwd()" href="javascript:;" class="aw-assest-btn aw-btn-radius aw-btn-bgcolor-lvse">提交</a></div>
	<!--表单-结束-->
</div>

@section('pagejs')
@parent
<script type="text/javascript">
var AD_pwd={
	api:'/api/user/rest-pwd',
	form_data:{phone:'',pwd:'',code:''},
	tips:'密码重置成功',
	to_url:'/wap/common/login'
}
vm=new Vue({
	el:'#Vue-body',
	data:{
		form:AD_pwd.form_data
	},methods:{
		Click_Pwd:function(){
			Form_Verification('#Vue-body',this.form,'code',function(ver_code){
				if(ver_code==1){
					postData(AD_pwd)
				}
			})
			
		}
	}
})
</script>
@endsection

@endsection

